package com.splash;

import com.essential.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
	private Button btn1;
	private Button btn2;
	private Button btn3;
	private Button btn4;
	private Button btn5;
	private Button btn6;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		btn1 = (Button) findViewById(R.id.main_activity_button1);
		btn2 = (Button) findViewById(R.id.main_activity_button2);
		btn3 = (Button) findViewById(R.id.main_activity_button3);
		btn4 = (Button) findViewById(R.id.main_activity_button4);
		btn5 = (Button) findViewById(R.id.main_activity_button5);
		btn6 = (Button) findViewById(R.id.main_activity_button6);

		btn1.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent("com.SMS.SMSSendActivity"));
			}
		});

		btn2.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				startActivity(new Intent("com.SMS.MMSSendActivity"));
			}
		});

		btn3.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent("com.prank.CustomViewActivity"));
			}
		});

		btn4.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent("com.map.MapExampleActivity"));

			}
		});

		btn5.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent("com.internet.StationPickerActivity"));

			}
		});

		btn6.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent("com.splash.AboutActivity"));

			}
		});

	}

	@Override
	protected void onPause() {
		super.onPause();

		stopService(new Intent("com.prank.START_AUDIO"));
	}

	@Override
	protected void onResume() {
		super.onResume();

		startService(new Intent("com.prank.START_AUDIO"));
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {

		return true;
	}
}
